{extend name="public/base"/}
{block name="body"}
<div class="main-box no-header clearfix">
	<header class="main-box-header clearfix">
		<div class="pull-left">
			<h2>{$meta_title}（{$count}）</h2>
		</div>
		<div class="pull-right">
			<!-- <a href="{:url('add')}" class="btn btn-primary pull-right"> <i class="fa fa-plus-circle fa-lg"></i> 新增</a> -->
		</div>
	</header>
	<div class="main-box-body clearfix">
		<div class="table-responsive">
      <table class="table table-striped table-hover">
        <thead>
          <tr>
            <th width="30"><input class="checkbox check-all" type="checkbox"></th>
            <th width="60">ID</th>
            <th>用户名</th>
            <th>金额</th>
            <th>状态</th>
            <th>送货方式</th>
            <th>地址</th>
            <th>送货时间</th>
            <th>操作</th>
          </tr>
        </thead>
        <tbody>
          {volist name="list" id="item"}
          <tr>
            <td><input class="ids row-selected" type="checkbox" name="ids[]" value="{$item['id']}"></td>
            <td>{$item['id']}</td>

            <td>{$item['user_name']} </td>
            <td>{$item['total']} </td>
            <td>{$item['buystatus']|parse_config_value='pay_status'}</td>
						<td>{$item['way']|parse_config_value='distribution'}</td>
						<td>{$item['address']}</td>
						<td>{$item['deliverytime']}</td>

            <td>
              <a href="{:url('edit',array('id'=>$item['id']))}">编辑</a>
              <a href="{:url('del',array('id'=>$item['id']))}" class="confirm ajax-get">删除</a>
            </td>
          </tr>
          {/volist}
        </tbody>
      </table>

      <!-- Modal -->
      <div class="modal fade "  id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-sm">
          <div class="modal-content">
            <div class="modal-header">
              <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
              <h4 class="modal-title" id="myModalLabel">是否需要补退差价</h4>
            </div>
            <div class="modal-body">
              补退金额：<input type="text" value="0" style=" width: 60px;text-align: center;" /> 元
            </div>
            <div class="modal-footer">
              <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
              <button type="button" class="btn btn-primary">接单</button>
            </div>
          </div>
        </div>
      </div>

		</div>
	</div>
</div>
{/block}
